'Declaration
Public Overloads Function Add( _ ByVal source As String, _ Optional ByVal ignoreInvalidItems As Boolean _ ) As Boolean
public bool Add( string source, bool ignoreInvalidItems )
public: bool Add( String^ source, bool ignoreInvalidItems )
Parameters
- source
- The string to parse.
- ignoreInvalidItems
- If true, any items in the string that cannot be parsed are ignored. If false, any invalid items cause the method to return false without adding any items.
Return Value
trueIf ignoreInvalidItems is true, always returns true. Otherwise, returns true if all items in the list were valid and added to the list. If the return value is false, the source contained one or more invalid values, and no items were added to the list.